import { Singleton } from "./Singleton";

const GAME_STATE = cc.Enum({
    PREPARE: -1,
    PLAYING: -1,
    OVER: -1
});

export class GameManager<T> extends Singleton<T> {

    public globalSocket:null;
    public hallSocket:null;
    public queueSocket:null;
    public roomSocket:null;
    public gameManager:null;
    public playerIndex:number = 0;

    public gameState = GAME_STATE.PLAYING;


    public STAND = cc.Enum({
        BLACK: 47,
        WHITE: -47
    });


    constructor() {
        super();
    }

}
